<?php

/**
 * Description of VideoController
 * 
 * @author anhducbkhn
 * @since Aug 12, 2013 - 12:02:45 AM
 */
class VideoController extends Controller
{

    public function actionDetail($url)
    {
        $model = Posts::model()->findByPk((int) $url);
        if ($model == NULL)
        {
            $this->render('error');
        }

        $this->render('detail', array(
            'model' => $model
        ));
    }

}

/**
 * End of VideoController
 */